package decorator.source;

/**
 * 具体的装饰类，起到给Compoent添加额外操作的功能
 * @Author: Chen Guang
 * @Date: 2019/3/29 0029 上午 10:31
 */
public class ConcreteDecoratorA extends Decorator{
    private String addedState;

    @Override
    public void operation() {
        super.operation();
        //额外的操作
        addedState = "ConcreteDecoratorA";
        System.out.println("具体装饰对象A的方法" + addedState);
    }
}
